package com.yanqu.road.logic.bussiness.player.activity;

import com.yanqu.road.entity.activity.zhanling.ZhanLingUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * @author ：zfr
 * @date ：2021/4/9 19:02
 */
public class ZhanLingActivityBusiness {
    public static Map<Integer, ZhanLingUserData> getZhanLingUserActivityData(List<Integer> activityIdList, long userId) {
        return DaoHelper.getZhanLingUserActivityDataDaoImpl().getZhanLingUserActivityData(activityIdList, userId);
    }

    public static boolean update(ZhanLingUserData data) {
        return DaoHelper.getZhanLingUserActivityDataDaoImpl().update(data);
    }

    public static boolean add(ZhanLingUserData data) {
        return DaoHelper.getZhanLingUserActivityDataDaoImpl().add(data);
    }
}
